package net.cl.db.sql.dialect;

import net.cl.db.Constants.DBTYPE;

public class MySqlDialect extends Dialect {

	@Override
	public DBTYPE getDbType() {
		return DBTYPE.MYSQL;
	}

	@Override
	public String lastInsertSql(String sql) {
		return "select LAST_INSERT_ID() as newid;";
	}

	@Override
	public String getPagingSql(String sql, int start, int rows) {
		return String.format("%s limit %s , %s;", sql, start, rows);
	}

}
